How does one use bash?
This commit is contained in:
parent
23b6493758
commit
2bac3ceabd
@ -1,15 +1,12 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
function addFile {
|
function addFile {
|
||||||
|
echo $1
|
||||||
cp $1 .
|
cp $1 .
|
||||||
echo "Source: \"$(basename $1)\"; DestDir: \"{app}\"; Flags: ignoreversion" >> installer.iss
|
echo "Source: \"$(basename $1)\"; DestDir: \"{app}\"; Flags: ignoreversion" >> installer.iss
|
||||||
}
|
}
|
||||||
|
|
||||||
function addAllFiles {
|
function addAllFiles {
|
||||||
(find $1 -type f -iname "$2" || exit 1) | while read -r filename; do
|
for file in $1/$2; do addFile "$file"; done
|
||||||
cp $filename .
|
|
||||||
echo $filename
|
|
||||||
echo "Source: \"$(basename $filename)\"; DestDir: \"{app}\"; Flags: ignoreversion" >> installer.iss
|
|
||||||
done
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ver=$(cat main.cpp | grep setApplicationVersion | sed "s/\\s*a.setApplicationVersion(\"//g" | sed "s/\");//g")
|
ver=$(cat main.cpp | grep setApplicationVersion | sed "s/\\s*a.setApplicationVersion(\"//g" | sed "s/\");//g")
|
||||||
|
Loading…
Reference in New Issue
Block a user