-
Notifications
You must be signed in to change notification settings - Fork 0
SysadminJeroen/samp-git-hash
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
samp-git-hash Copyright (c) 2016, Jeroen de Neef, <[email protected]> All rights reserved DESCRIPTION ----------- I was looking for a way to automatically include and define the Git hash of a project before compiling. So I started typing and after a night of learning C this came out of it. OVERVIEW -------- samp-git-hash includes: git-hash: The binary that generates the include for Pawn. DEPENDENCIES ------------ This project has dependencies, make sure that you meet them. Git 1.7.9.3 BINARIES -------- There are compiled binaries available for Windows operating systems. It is very easy to compile this for Linux, but there is no official SA:MP Pawn compiler for Linux. INSTALLATION ------------ Compile: git-hash.c Using GCC: gcc git-hash.c -o git-hash Using Makefile: make Alternative: It is possible to install the program on CentOS 6 and 7 using the RPM packages below or after configuring YUM with the repository below. The program can be accessed after installing using 'samp-git-hash'. RPM package ----------- There are RPM packages available, these have been built on CentOS 6 and 7. CentOS 6: <https://rpm.jeroendeneef.com/jeroendeneef/CentOS/6/i386/samp-git-hash-1.1.2-3.el6.i686.rpm>, <https://rpm.jeroendeneef.com/jeroendeneef/CentOS/6/x86_64/samp-git-hash-1.1.2-3.el6.x86_64.rpm>, <https://rpm.jeroendeneef.com/jeroendeneef/CentOS/6/SRPMS/samp-git-hash-1.1.2-3.el6.src.rpm> CentOS 7: <https://rpm.jeroendeneef.com/jeroendeneef/CentOS/7/x86_64/samp-git-hash-1.1.2-3.el7.centos.x86_64.rpm>, <https://rpm.jeroendeneef.com/jeroendeneef/CentOS/7/SRPMS/samp-git-hash-1.1.2-3.el7.centos.src.rpm> YUM repository -------------- To install 'samp-git-hash', you need to configure YUM with my repository, to add my YUM repository you need to use the following Shell script: 'curl -o /etc/yum.repos.d/jeroendeneef.repo https://rpm.jeroendeneef.com/jeroendeneef/CentOS/jeroendeneef.repo'. This program is available in the repository under 'samp-git-hash'. SUPPORT ------- Create an issue at <https://github.com/Jeroen52/samp-git-hash> if you need any help, or post it in the official SA:MP thread at <http://forum.sa-mp.com/showthread.php?p=3644399#post3644399>. HOW TO CONTRIBUTE ----------------- Fork this repository and make a pull request when done.
About
To get the latest Git commit hash and from that generate an include file with the hash defined in it which you can include in Pawn scripts.
Resources
Stars
Watchers
Forks
Packages 0
No packages published