makedir.SH Precursor to makedir
Makefile.micro microperl Makefile
Makefile.SH A script that generates Makefile
+make_patchnum.sh Script to generate .patchnum file
malloc.c A version of malloc you might not want
malloc_ctl.h A version of malloc you might not want
MANIFEST This list of files
Existing=`cat .patchnum 2>/dev/null`
if [ -e ".patch" ]; then
Current=`awk '{print $4}' .patch`
-else
+elif [ -d ".git" ]; then
# we should do something better here
Current=`git describe`
Changed=`git diff-index --name-only HEAD`
- if [ -n "$Changed" ]; then
- Current="$Current-with-uncommitted-changes"
- fi
+ [ -n "$Changed" ] && Current="$Current-with-uncommitted-changes"
fi
if [ "$Existing" != "$Current" ]; then