cynix

x86 UNIX-like OS
git clone git://git.2f30.org/cynix
Log | Files | Refs | README | LICENSE

compile.sh (474B)


      1 #!/bin/bash
      2 
      3 echo "#ifndef __VERSION_H__" > src/include/version.h
      4 echo "#define __VERSION_H__" >> src/include/version.h
      5 echo "#define USER \"`whoami`\"" >> src/include/version.h
      6 echo "#define DATE \"`date`\"" >> src/include/version.h
      7 echo "#define HOST \"`hostname`\"" >> src/include/version.h
      8 echo "#define REVISION \"`hg summary 2>/dev/null | awk '{print $2}' \
      9 	| sed 's/:/\n/g' | head -1`\"" >> src/include/version.h
     10 echo "#endif" >> src/include/version.h
     11 sudo make all