uncommented actual code
This commit is contained in:
parent
693a4e7f69
commit
6a3b0277bf
|
@ -55,7 +55,7 @@ if [ -e "$BUILDFILE" ]; then
|
||||||
newsum=$(md5sum $(get_latest_config) | awk '{print $1}')
|
newsum=$(md5sum $(get_latest_config) | awk '{print $1}')
|
||||||
if [ "$oldsum" != "$newsum" ]; then
|
if [ "$oldsum" != "$newsum" ]; then
|
||||||
echo "copying old config to $CONFHIST_DIR"
|
echo "copying old config to $CONFHIST_DIR"
|
||||||
# cp "$oldconf" "$CONFHIST_DIR/.config-$(date +%Y%m%d%H%M)"
|
cp "$oldconf" "$CONFHIST_DIR/.config-$(date +%Y%m%d%H%M)"
|
||||||
else
|
else
|
||||||
echo "config file up to date. nothing to back up"
|
echo "config file up to date. nothing to back up"
|
||||||
fi
|
fi
|
||||||
|
@ -64,19 +64,19 @@ fi
|
||||||
|
|
||||||
if [ -z "$OLD_PKG" ]; then
|
if [ -z "$OLD_PKG" ]; then
|
||||||
echo downloading new package
|
echo downloading new package
|
||||||
# rm -rf $PKG_DIR
|
rm -rf $PKG_DIR
|
||||||
# curl -O "$PKG_URL"
|
curl -O "$PKG_URL"
|
||||||
# tar xzf linux-ck.tar.gz
|
tar xzf linux-ck.tar.gz
|
||||||
|
|
||||||
latest_conf=$(get_latest_config)
|
latest_conf=$(get_latest_config)
|
||||||
echo "copying conf: $latest_conf"
|
echo "copying conf: $latest_conf"
|
||||||
# cp "$latest_conf" "$PKG_DIR/config"
|
cp "$latest_conf" "$PKG_DIR/config"
|
||||||
# updpkgsums "$BUILDFILE"
|
updpkgsums "$BUILDFILE"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# cd "$PKG_DIR"
|
cd "$PKG_DIR"
|
||||||
# if [ -n "$DO_CONFIG" ]; then
|
if [ -n "$DO_CONFIG" ]; then
|
||||||
# sed -i '/_makenconfig=/ s/$/y/' PKGBUILD
|
sed -i '/_makenconfig=/ s/$/y/' PKGBUILD
|
||||||
# fi
|
fi
|
||||||
# makepkg -s -r -f -i
|
makepkg -s -r -f -i
|
||||||
# cd ..
|
cd ..
|
||||||
|
|
Loading…
Reference in New Issue