diff options
author | V3n3RiX <venerix@rogentos.ro> | 2015-11-29 19:41:10 +0000 |
---|---|---|
committer | V3n3RiX <venerix@rogentos.ro> | 2015-11-29 19:41:10 +0000 |
commit | 6ad722e7c4fb9872ad1161405462245e3b309b31 (patch) | |
tree | 280b1231ee70878c853ccdbd3ce2662b1d1b2022 /iso64 | |
parent | 9293d7b42a47471aa926077d10a9bbe7b42931a8 (diff) |
streamline the process, i'm lazy to write duplicate code...it's much easy to just append the quality to the iso after it's done
Diffstat (limited to 'iso64')
-rwxr-xr-x | iso64 | 60 |
1 files changed, 7 insertions, 53 deletions
@@ -5,67 +5,21 @@ kernelconfig checkroot -# Check core integrity before doing anything -chrootchecksumx64 - export local isoarch="amd64" export local isoname=""$releasename"-"$releaseversion"-"$isoarch"" export local tmpiso="/tmp/"$isoname"" -dailyisox64 () { - export local isostatus="DAILY" - mkdir -p "$tmpiso" - mkdir -p ""$isoname"-"$isostatus"/livecd" - mount -t squashfs "$chrootx64" "$tmpiso" - rsync -aHAXr --progress "$tmpiso/" ""$isoname"-"$isostatus"/livecd/" - umount "$tmpiso" -} - -alphaisox64 () { - export local isostatus="ALPHA" +makeisox64 () { mkdir -p "$tmpiso" - mkdir -p ""$isoname"-"$isostatus"/livecd" + mkdir -p ""$isoname"/livecd" mount -t squashfs "$chrootx64" "$tmpiso" - rsync -aHAXr --progress "$tmpiso/" ""$isoname"-"$isostatus"/livecd/" + rsync -aHAXr --progress "$tmpiso/" ""$isoname"/livecd/" umount "$tmpiso" } -betaisox64 () { - export local isostatus="BETA" - mkdir -p "$tmpiso" - mkdir -p ""$isoname"-"$isostatus"/livecd" - mount -t squashfs "$chrootx64" "$tmpiso" - rsync -aHAXr --progress "$tmpiso/" ""$isoname"-"$isostatus"/livecd/" - umount "$tmpiso" -} - -rcisox64 () { - export local isostatus="RC" - mkdir -p "$tmpiso" - mkdir -p ""$isoname"-"$isostatus"/livecd" - mount -t squashfs "$chrootx64" "$tmpiso" - rsync -aHAXr --progress "$tmpiso/" ""$isoname"-"$isostatus"/livecd/" - umount "$tmpiso" -} - -stableisox64 () { - export local isostatus="STABLE" - mkdir -p "$tmpiso" - mkdir -p ""$isoname"-"$isostatus"/livecd" - mount -t squashfs "$chrootx64" "$tmpiso" - rsync -aHAXr --progress "$tmpiso/" ""$isoname"-"$isostatus"/livecd/" - umount "$tmpiso" +main () { + chrootchecksumx64 + makeisox64 } -case $2 in - --daily) dailyisox64 - ;; - --alpha) alphaisox64 - ;; - --beta) betaisox64 - ;; - --rc) rcisox64 - ;; - --stable) stableisox64 - ;; -esac +main |