]> wagnertech.de Git - projects.git/blobdiff - tools/make/configure
bass
[projects.git] / tools / make / configure
index 31efc268c28865d44fd8b60df726eb4dcd09d7e5..e9770fa82247f68cc1c785278d8b78d9dae5857f 100755 (executable)
@@ -89,12 +89,13 @@ fi
 
 # copy package control
 control=$(find -L src -name $paket.control)
+build_number=${build#*_}
 if [ -z "$control" ]
 then
        echo "warning: control file not found"
        echo "  this file is necessary for any package production."
 else   
-       sed "s/%BUILD%/$build/" $control |sed "s/%ARCH%/$ARCH/" >$paket.control
+       sed "s/%BUILD%/$build_number/" $control |sed "s/%ARCH%/$ARCH/" >$paket.control
        echo "$paket.control written."
 
        # extract version