Updated package scripts.

This commit is contained in:
Jérôme Schneider 2012-11-18 21:50:20 +01:00
parent 8df744874b
commit 77cb6182e8
2 changed files with 17 additions and 13 deletions

View file

@ -1,4 +1,9 @@
#!/usr/bin/env sh
TEMPDATE="`date +%Y-%m-%d-%H-%M-%S`"
TEMPDIR="/tmp/baikal-flat-$TEMPDATE-temp"
TEMPARCHIVE="$TEMPDIR/temparchive.tgz"
TEMPDIRDEREFERENCE="/tmp/baikal-flat-$TEMPDATE"
echo "########################################################################"
echo "#"
echo "# Baïkal Packaging script"
@ -6,16 +11,12 @@ echo "#"
echo "# Packaging project for flat distribution (replacing symlinks"
echo "# by their target). Useful for FTP deployment"
echo "#"
echo "#"
echo "# TEMPDIR: $TEMPDIR"
TEMPDATE="`date +%Y-%m-%d-%H-%M-%S`"
TEMPDIR="/tmp/baikal-flat-$TEMPDATE-temp"
TEMPARCHIVE="$TEMPDIR/temparchive.tgz"
TEMPDIRDEREFERENCE="/tmp/baikal-flat-$TEMPDATE"
rm -rf /tmp/baikal-flat
# Export Project
# Requires the git-archive-all script by https://github.com/Kentzo (https://github.com/Kentzo/git-archive-all)
rm -rf /tmp/baikal-flat
mkdir $TEMPDIR && \
git-archive-all --force-submodules $TEMPARCHIVE && \
@ -25,7 +26,7 @@ cd $TEMPDIR && tar -xzf $TEMPARCHIVE && rm $TEMPARCHIVE && \
cp -RfL $TEMPDIR $TEMPDIRDEREFERENCE && \
rm -Rf $TEMPDIR && \
TEMPDIR=$TEMPDIRDEREFERENCE && \
TEMPDIR=$TEMPDIRDEREFERENCE/temparchive && \
# Jump to tempdir
cd $TEMPDIR && \

View file

@ -1,24 +1,27 @@
#!/usr/bin/env sh
TEMPDATE="`date +%Y-%m-%d-%H-%M-%S`"
TEMPDIR="/tmp/baikal-regular-$TEMPDATE"
TEMPARCHIVE="$TEMPDIR/temparchive.tgz"
echo "########################################################################"
echo "#"
echo "# Baïkal Packaging script"
echo "#"
echo "# Packaging project for regular distribution"
echo "#"
echo "#"
TEMPDATE="`date +%Y-%m-%d-%H-%M-%S`"
TEMPDIR="/tmp/baikal-regular-$TEMPDATE"
TEMPARCHIVE="$TEMPDIR/temparchive.tgz"
echo "# TEMPDIR: $TEMPDIR"
rm -rf /tmp/baikal-regular
# Export Project
# Requires the git-archive-all script by https://github.com/Kentzo (https://github.com/Kentzo/git-archive-all)
mkdir $TEMPDIR && \
mkdir -p $TEMPDIR && \
git-archive-all --force-submodules $TEMPARCHIVE && \
cd $TEMPDIR && tar -xzf $TEMPARCHIVE && rm $TEMPARCHIVE && \
TEMPDIR=$TEMPDIR/temparchive && \
# Jump to tempdir
cd $TEMPDIR && \