瀏覽代碼

Accept list of file as parameters of the script

git-svn-id: trunk@23955 -
pierre 12 年之前
父節點
當前提交
e89c275746
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      utils/fpcm/get_revision.sh

+ 4 - 0
utils/fpcm/get_revision.sh

@@ -3,7 +3,11 @@
 # List of files which should be considered imprtant
 # for the behavior of fpcmake binary
 # fpcmake.inc and Makefile should be excluded from that list
+if [ "$#" -ge 1 ] ; then
+important_files="$*"
+else
 important_sources=`ls -1 fpcm*.pp fpcmake.ini Makefile.fpc`
+fi
 
 LANG=C
 export LANG