From: Klaus Robert Suetterlin Date: Thu, 21 Apr 2005 10:23:26 GMT Subject: HOWTO: PATCH: don't hardcode path-to-bash, use sys/limits.h Message-ID: <20050421102326.GA22541@xdt04.mpe-garching.mpg.de> In-Reply-To: <4267387A.6040602@timesys.com> Hi, I supply a patch that dehardcodes the path to bash (which is not /bin on all computers) and adds sys/limits.h to provide ULONG_MAX. If this is not the right way to supply patches, or if this email misses some crucial point please tell me so, and supply explanation. -- Robert Suetterlin (robert@mpe.mpg.de) phone: (+49)89 / 30000-3546 fax: (+49)89 / 30000-3950 commit 5f6caff82b1f3b5931d92aaff99be6d8dbad10ca tree d7ea8aeefbbc2ab63cb5acd41b647b1b5f11fb83 parent cd1c034369b73da7503da365fa556aab27004814 author Klaus Robert Suetterlin 1114078431 +0200 committer Klaus Robert Suetterlin 1114078431 +0200 Don't hardcode the path-to-bash please. Index: commit.c =================================================================== --- c0260bfb82da04aeff4e598ced5295d6ae2e262d/commit.c (mode:100644 sha1:eda45d7e15358ed6f2cd0502de2a08987307fc98) +++ d7ea8aeefbbc2ab63cb5acd41b647b1b5f11fb83/commit.c (mode:100644 sha1:cfe9a8ddf6ee2702e3923cb22240f9f9ed1bd04c) @@ -1,3 +1,4 @@ +#include #include "commit.h" #include "cache.h" #include Index: gitdiff-do =================================================================== --- c0260bfb82da04aeff4e598ced5295d6ae2e262d/gitdiff-do (mode:100755 sha1:afed4e40b259a61b0f12979ba7326f26743bc553) +++ d7ea8aeefbbc2ab63cb5acd41b647b1b5f11fb83/gitdiff-do (mode:100755 sha1:218dfabeb4a5dcbd2cf58bd6f672f385690ec397) @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Make a diff between two GIT trees. # Copyright (c) Petr Baudis, 2005 Index: gitlog.sh =================================================================== --- c0260bfb82da04aeff4e598ced5295d6ae2e262d/gitlog.sh (mode:100755 sha1:a496a864f9586e47a4d7bd3ae0af0b3e07b7deb8) +++ d7ea8aeefbbc2ab63cb5acd41b647b1b5f11fb83/gitlog.sh (mode:100755 sha1:7b3aa8a89bc64273c648920ccd1686859754803e) @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Make a log of changes in a GIT branch. #