n="${n%%n}"
for file in $(ls "$tmpd" 2>/dev/null); do
files=$(cat "$tmpd/$file")
+ pkg=$(cat "$tmpd/$file" |sed -e 's|/.*||')
+ spec=$(cat "$tmpd/$file" |sed -e 's|.*/||')
rel=$(basename "$file")
msg=""
[ -n "$message" ] && msg="$msg- $message$n"
msg="$msg- release ${rel%%%*} (by relup.sh)$n"
- echo git commit -a -m "'$msg'"
if [ "$test" != 1 ]; then
- cd $(dirname $1)
- #git commit -m "$msg" $files
- git commit -a -m "$msg"
+ cd $pkg
+ git commit -m "$msg" $spec
+ git push
+ cd ..
fi
done
rm -rf $tmpd