OSDN Git Service

Clean repository directory
authorumorigu <umorigu@gmail.com>
Mon, 22 Nov 2021 14:49:14 +0000 (23:49 +0900)
committerumorigu <umorigu@gmail.com>
Mon, 22 Nov 2021 14:49:14 +0000 (23:49 +0900)
.gitignore
pack.sh

index 7999b04..139597f 100644 (file)
@@ -1,4 +1,2 @@
-/_pukiwiki-*
-/_build_package_*
 
 
diff --git a/pack.sh b/pack.sh
index 1e10956..fac3220 100755 (executable)
--- a/pack.sh
+++ b/pack.sh
@@ -9,9 +9,14 @@ echo REVISION: $REVISION
 REV4=${REVISION:0:4}
 echo $REV4
 
-DIR=D$(date "+%Y%m%d-%H%M")
+# Ensure dirs
+pushd ../outputs
+popd
+pushd ../tmp
+popd
 
-OUTPUT_DIR="_build_package_${VERSION}_${SUFFIX}"
+OUTPUT_DIR="../outputs/_build_package_${VERSION}_${SUFFIX}"
+mkdir $OUTPUT_DIR
 
 ./release.sh --git --zip --name pukiwiki-${VERSION}_utf8 \
   --utf8 --repo git://git.osdn.jp/gitroot/pukiwiki/pukiwiki.git \
@@ -24,10 +29,9 @@ OUTPUT_DIR="_build_package_${VERSION}_${SUFFIX}"
 cp -p pukiwiki-${VERSION}_utf8.zip pukiwiki-${VERSION}-${SUFFIX}-${REV4}_utf8.zip
 cp -p pukiwiki-${VERSION}_eucjp.zip pukiwiki-${VERSION}-${SUFFIX}-${REV4}_eucjp.zip
 
-mkdir $OUTPUT_DIR
 mv *.zip $OUTPUT_DIR/
 
 DATENOW=$(date +'%Y%m%d_%H%M')
-mv pukiwiki-${VERSION}_utf8 _pukiwiki-${VERSION}_utf8_${DATENOW}
-mv pukiwiki-${VERSION}_eucjp _pukiwiki-${VERSION}_eucjp_${DATENOW}
+mv pukiwiki-${VERSION}_utf8 ../tmp/_pukiwiki-${VERSION}_utf8_${DATENOW}
+mv pukiwiki-${VERSION}_eucjp ../tmp/_pukiwiki-${VERSION}_eucjp_${DATENOW}