diff options
Diffstat (limited to 'trunk/src')
-rwxr-xr-x | trunk/src/mkjail | 8 | ||||
-rwxr-xr-x | trunk/src/repos | 7 |
2 files changed, 11 insertions, 4 deletions
diff --git a/trunk/src/mkjail b/trunk/src/mkjail index 43669e1..f6c935c 100755 --- a/trunk/src/mkjail +++ b/trunk/src/mkjail @@ -61,9 +61,11 @@ function jailist_update { # update the jail list file # usage: jailist_update <jail-path> - touch $JAIL_LIST - if ! grep -q -e "^$1\$" $JAIL_LIST; then - echo $1 >> $JAIL_LIST + if [ "$ADD_TO_JAIL_LIST" == "1" ]; then + touch $JAIL_LIST + if ! grep -q -e "^$1\$" $JAIL_LIST; then + echo $1 >> $JAIL_LIST + fi fi } diff --git a/trunk/src/repos b/trunk/src/repos index 95a3936..c37e625 100755 --- a/trunk/src/repos +++ b/trunk/src/repos @@ -30,11 +30,16 @@ function svn_add_meta { function gen_filelist { + local cwd + for file in `find | grep -e ".tgz$"`; do ls -l $file; done > FILELIST.TXT echo "Created new FILELIST.TXT" if [ -d "patches" ]; then - for file in `find patches | grep -e ".tgz$"`; do ls -l $file; done > patches/FILE_LIST + cwd="`pwd`" + cd patches + for file in `find | grep -e ".tgz$"`; do ls -l $file; done > FILE_LIST echo "Created new patches/FILE_LIST" + cd $pwd fi } |