Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate
Sign In | Create Account

Advertising

Someone
Friday, May 11th, 2012 at 12:29:16am MDT 

  1. diff --git a/pabrik-cc/build-iso b/pabrik-cc/build-iso
  2. index 8194b86..d7f8b4a 100755
  3. --- a/pabrik-cc/build-iso
  4. +++ b/pabrik-cc/build-iso
  5. @@ -49,6 +49,7 @@ export EXTRA_REPOSITORY_HIDDEN
  6.  
  7.  export D_I_URL
  8.  export STRIP
  9. +export STRIP_EXCLUSIONS
  10.  
  11.  check_variable DISK_ID
  12.  check_variable TEMPLATES_PATH
  13. diff --git a/pabrik-cc/publish b/pabrik-cc/publish
  14. index c63c6cd..581b5d9 100755
  15. --- a/pabrik-cc/publish
  16. +++ b/pabrik-cc/publish
  17. @@ -22,5 +22,8 @@ fi
  18.  
  19.  pushd $TMP
  20.  md5sum $DIST-$VARIANT-$ARCH.iso > $DIST-$VARIANT-$ARCH.iso.md5sum
  21. +sha1sum $DIST-$VARIANT-$ARCH.iso > $DIST-$VARIANT-$ARCH.iso.sha1sum
  22. +sha256sum $DIST-$VARIANT-$ARCH.iso > $DIST-$VARIANT-$ARCH.iso.sha256sum
  23. +zsyncmake $DIST-$VARIANT-$ARCH.iso
  24.  popd
  25.  mv $TMP/$DIST-$VARIANT-$ARCH.iso* $TMP/$DISK_ID-publish
  26. diff --git a/pabrik-cc/strip b/pabrik-cc/strip
  27. index 7c34471..2b5394d 100755
  28. --- a/pabrik-cc/strip
  29. +++ b/pabrik-cc/strip
  30. @@ -1,7 +1,8 @@
  31.  #!/bin/bash
  32.  
  33.  set -e
  34. -
  35. +set -x
  36. +       
  37.  if [ -z $INTERNALCALL ];then
  38.      echo "This script should not be called by you. Thanks for calling."
  39.      exit 1
  40. @@ -14,18 +15,36 @@ check_variable DISK_ID
  41.  
  42.  #STRIP="/usr/share/doc /usr/share/locale/"
  43.  if [ -n "$STRIP" ];then
  44. -    rm -f $TMP/$DISK_ID-stripped.list
  45. -    for i in $STRIP;do
  46. -        set +e
  47. -        grep -h "$i" $ROOTFS/var/lib/dpkg/info/*list >> $TMP/$DISK_ID-stripped.list
  48. -        set -e
  49. -        for f in `find $ROOTFS/var/lib/dpkg|grep "\.list$"`;do
  50. -            grep -v $i $f > $f.stripped
  51. -            mv $f.stripped $f
  52. -        done
  53. +    mkdir -p $TMP/$DISK_ID-strip
  54. +    rm -f $TMP/$DISK_ID-strip/list
  55. +    rm -f $TMP/$DISK_ID-strip/exclusions
  56. +    touch $TMP/$DISK_ID-strip/exclusions
  57. +
  58. +    for exclude in $STRIP_EXCLUSIONS;do
  59. +        echo "$exclude.list" >> $TMP/$DISK_ID-strip/exclusions
  60. +    done
  61. +   
  62. +    X=`echo $STRIP_EXCLUSIONS| sed -e "s/ /\\\\\\|/g"`
  63. +
  64. +    set +e
  65. +    for i in $STRIP;do       
  66. +        grep -h "$i" --exclude-from=$TMP/$DISK_ID-strip/exclusions $ROOTFS/var/lib/dpkg/info/*list >> $TMP/$DISK_ID-strip/list
  67. +         
  68. +        if [ "x$X" = "x" ];then
  69. +            for f in `find $ROOTFS/var/lib/dpkg|grep "\.list$"`;do
  70. +                 grep -v $i $f > $f.stripped
  71. +                 mv $f.stripped $f
  72. +             done
  73. +         else
  74. +              for f in `find $ROOTFS/var/lib/dpkg|grep "\.list$"|grep -v -e "$X"`;do
  75. +                   grep -v $i $f > $f.stripped
  76. +                   mv $f.stripped $f
  77. +              done
  78. +          fi     
  79.      done
  80. +    set -e
  81.      echo "Removing..."
  82. -    for i in `cat $TMP/$DISK_ID-stripped.list`;do
  83. +    for i in `cat $TMP/$DISK_ID-strip/list`;do
  84.          echo $i
  85.          rm -rf $ROOTFS/$i
  86.      done
  87. diff --git a/templates/FAIL.txt b/templates/FAIL.txt
  88. index 5325386..2cbd50c 100644
  89. --- a/templates/FAIL.txt
  90. +++ b/templates/FAIL.txt
  91. @@ -1,4 +1,4 @@
  92. -From: Pabrik CD <pabrik-cd@blankon.in>
  93. +From: Pabrik CD <cdimage@alynne.blankonlinux.or.id>
  94.  To: RECIPIENT
  95.  Subject: Building of ISO DIST was failed
  96.  
  97. diff --git a/templates/SUCCESS.txt b/templates/SUCCESS.txt
  98. index a6c3e65..3c563d6 100644
  99. --- a/templates/SUCCESS.txt
  100. +++ b/templates/SUCCESS.txt
  101. @@ -1,4 +1,4 @@
  102. -From: Pabrik CD <pabrik-cd@blankon.in>
  103. +From: Pabrik CD <cdimage@alynne.blankonlinux.or.id>
  104.  To: RECIPIENT
  105.  Subject: Building of ISO DIST was a success!
  106.  

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.

update paste below
details of the post (optional)

Note: Only the paste content is required, though the following information can be useful to others.

Save name / title?

(space separated, optional)



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.

worth-right worth-right