projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
stretch-happy Releases files
[freeside.git]
/
bin
/
freeside-debian-releases.sh
diff --git
a/bin/freeside-debian-releases.sh
b/bin/freeside-debian-releases.sh
index
03a163a
..
d715219
100755
(executable)
--- a/
bin/freeside-debian-releases.sh
+++ b/
bin/freeside-debian-releases.sh
@@
-12,7
+12,7
@@
fi
DATE=`date +"%Y%m%d"`
DIR="/home/autobuild/packages/staging/freeside$FS_VERSION/$FS_REPO"
DATE=`date +"%Y%m%d"`
DIR="/home/autobuild/packages/staging/freeside$FS_VERSION/$FS_REPO"
-TARGET="/home/
jeremy
d/public_html/freeside$FS_VERSION-$DISTRO-$FS_REPO"
+TARGET="/home/
autobuil
d/public_html/freeside$FS_VERSION-$DISTRO-$FS_REPO"
if [ ! -d "$DIR" -a -d $TARGET ]; then
if [ ! -d "$DIR" -a -d $TARGET ]; then
@@
-31,16
+31,10
@@
git checkout -- debian/changelog
git pull
#STATUS=`git pull`
git pull
#STATUS=`git pull`
-#Assign the proper config files for freeside-ng-selfservice
-if [ $DISTRO = "wheezy" ]; then
- ln -s $DIR/freeside/debian/freeside-ng-selfservice.deb7 $DIR/freeside/debian/freeside-ng-selfservice.conffiles
-else
- ln -s $DIR/freeside/debian/freeside-ng-selfservice.deb8 $DIR/freeside/debian/freeside-ng-selfservice.conffiles
-fi
-
# Add the build information to changelog
# Add the build information to changelog
-
-dch -b --newversion $GIT_VERSION-$DATE "Auto-Build"
+if [ $FS_REPO != "stable" ]; then
+ dch -b --newversion $GIT_VERSION-$DATE "Auto-Build"
+fi
# Using pbuilder and pdebuild in chroot instead of building directly : dpkg-buildpackage -b -rfakeroot -uc -us
# Using pbuilder and pdebuild in chroot instead of building directly : dpkg-buildpackage -b -rfakeroot -uc -us
@@
-48,7
+42,13
@@
pdebuild --pbuilderroot sudo --debbuildopts "-b -rfakeroot -uc -us" --buildresul
#--buildresult gets the file where it needs to be, may need to clean up DIR
#--buildresult gets the file where it needs to be, may need to clean up DIR
-cd $DIR
;
rm -f freeside_*
-cd $TARGET
;
rm -f *.gz
+cd $DIR
&&
rm -f freeside_*
+cd $TARGET
&&
rm -f *.gz
-$TARGET/APT
+apt-ftparchive -qq packages ./ >Packages
+gzip -c Packages >Packages.gz
+bzip2 -c Packages >Packagez.bz2
+apt-ftparchive -qq sources ./ >Sources
+gzip -c Sources >Sources.gz
+bzip2 -c Sources >Sources.bz2
+apt-ftparchive -qq release ./ >Release