build.sh (1264B)
- #!/bin/sh
- echo [Widrop] --------------------------
- echo [Widrop] building Packages
- echo [Widrop] --------------------------
- for x in $(cat list); do
- dpkg -b $x dist/$x.deb;
- done;
- echo [Widrop] -------------------------------
- echo [Widrop] Generating Packages file
- echo [Widrop] -------------------------------
- cd dist;
- dpkg-scanpackages . /dev/null > Packages;
- gzip -c Packages > Packages.gz
- cd ..
- echo [Widrop] -------------------------------
- echo [Widrop] Generating Release file
- echo [Widrop] -------------------------------
- cat > dist/Release <<EOF
- Archive: stable
- Component: main, contrib, non-free
- Origin: Widrop
- Label: Widrop
- Architecture: all
- MD5Sum:
- EOF
- echo [Widrop] -------------------------------------
- echo [Widrop] Adding md5sums to Release file
- echo [Widrop] -------------------------------------
- cd dist;
- for x in Packages Release; do
- echo " \
- $(md5sum $x | awk '{ print $1}') \
- $(du -sb $x)" \
- >> Release
- done;
- cd ..
- echo [Widrop] -------------------------------
- echo [Widrop] Done !
- echo [Widrop] -------------------------------
- echo [Widrop] -------------------------------
- echo [Widrop] Please note forgot to update
- echo [Widrop] Signature using src/gpg/sign.sh
- echo [Widrop] -------------------------------