Advertising
- Someone
- Friday, May 11th, 2012 at 12:29:16am MDT
- diff --git a/pabrik-cc/build-iso b/pabrik-cc/build-iso
- index 8194b86..d7f8b4a 100755
- --- a/pabrik-cc/build-iso
- +++ b/pabrik-cc/build-iso
- @@ -49,6 +49,7 @@ export EXTRA_REPOSITORY_HIDDEN
- export D_I_URL
- export STRIP
- +export STRIP_EXCLUSIONS
- check_variable DISK_ID
- check_variable TEMPLATES_PATH
- diff --git a/pabrik-cc/publish b/pabrik-cc/publish
- index c63c6cd..581b5d9 100755
- --- a/pabrik-cc/publish
- +++ b/pabrik-cc/publish
- @@ -22,5 +22,8 @@ fi
- pushd $TMP
- md5sum $DIST-$VARIANT-$ARCH.iso > $DIST-$VARIANT-$ARCH.iso.md5sum
- +sha1sum $DIST-$VARIANT-$ARCH.iso > $DIST-$VARIANT-$ARCH.iso.sha1sum
- +sha256sum $DIST-$VARIANT-$ARCH.iso > $DIST-$VARIANT-$ARCH.iso.sha256sum
- +zsyncmake $DIST-$VARIANT-$ARCH.iso
- popd
- mv $TMP/$DIST-$VARIANT-$ARCH.iso* $TMP/$DISK_ID-publish
- diff --git a/pabrik-cc/strip b/pabrik-cc/strip
- index 7c34471..2b5394d 100755
- --- a/pabrik-cc/strip
- +++ b/pabrik-cc/strip
- @@ -1,7 +1,8 @@
- #!/bin/bash
- set -e
- -
- +set -x
- +
- if [ -z $INTERNALCALL ];then
- echo "This script should not be called by you. Thanks for calling."
- exit 1
- @@ -14,18 +15,36 @@ check_variable DISK_ID
- #STRIP="/usr/share/doc /usr/share/locale/"
- if [ -n "$STRIP" ];then
- - rm -f $TMP/$DISK_ID-stripped.list
- - for i in $STRIP;do
- - set +e
- - grep -h "$i" $ROOTFS/var/lib/dpkg/info/*list >> $TMP/$DISK_ID-stripped.list
- - set -e
- - for f in `find $ROOTFS/var/lib/dpkg|grep "\.list$"`;do
- - grep -v $i $f > $f.stripped
- - mv $f.stripped $f
- - done
- + mkdir -p $TMP/$DISK_ID-strip
- + rm -f $TMP/$DISK_ID-strip/list
- + rm -f $TMP/$DISK_ID-strip/exclusions
- + touch $TMP/$DISK_ID-strip/exclusions
- +
- + for exclude in $STRIP_EXCLUSIONS;do
- + echo "$exclude.list" >> $TMP/$DISK_ID-strip/exclusions
- + done
- +
- + X=`echo $STRIP_EXCLUSIONS| sed -e "s/ /\\\\\\|/g"`
- +
- + set +e
- + for i in $STRIP;do
- + grep -h "$i" --exclude-from=$TMP/$DISK_ID-strip/exclusions $ROOTFS/var/lib/dpkg/info/*list >> $TMP/$DISK_ID-strip/list
- +
- + if [ "x$X" = "x" ];then
- + for f in `find $ROOTFS/var/lib/dpkg|grep "\.list$"`;do
- + grep -v $i $f > $f.stripped
- + mv $f.stripped $f
- + done
- + else
- + for f in `find $ROOTFS/var/lib/dpkg|grep "\.list$"|grep -v -e "$X"`;do
- + grep -v $i $f > $f.stripped
- + mv $f.stripped $f
- + done
- + fi
- done
- + set -e
- echo "Removing..."
- - for i in `cat $TMP/$DISK_ID-stripped.list`;do
- + for i in `cat $TMP/$DISK_ID-strip/list`;do
- echo $i
- rm -rf $ROOTFS/$i
- done
- diff --git a/templates/FAIL.txt b/templates/FAIL.txt
- index 5325386..2cbd50c 100644
- --- a/templates/FAIL.txt
- +++ b/templates/FAIL.txt
- @@ -1,4 +1,4 @@
- -From: Pabrik CD <pabrik-cd@blankon.in>
- +From: Pabrik CD <cdimage@alynne.blankonlinux.or.id>
- To: RECIPIENT
- Subject: Building of ISO DIST was failed
- diff --git a/templates/SUCCESS.txt b/templates/SUCCESS.txt
- index a6c3e65..3c563d6 100644
- --- a/templates/SUCCESS.txt
- +++ b/templates/SUCCESS.txt
- @@ -1,4 +1,4 @@
- -From: Pabrik CD <pabrik-cd@blankon.in>
- +From: Pabrik CD <cdimage@alynne.blankonlinux.or.id>
- To: RECIPIENT
- Subject: Building of ISO DIST was a success!
advertising
Update the Post
Either update this post and resubmit it with changes, or make a new post.
You may also comment on this post.
Please note that information posted here will expire by default in one month. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.