projects
/
systemrescuecd.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Make a distinction between ARCH and BASEARCH in recreate-iso.sh
[systemrescuecd.git]
/
mainfiles
/
setsnapshot.sh
1
#!/bin/bash
2
3
if [ -n "${1}" ]
4
then
5
newdate="${1}"
6
else
7
newdate="$(date --date='1 days ago' +%Y%m%d)"
8
fi
9
10
for f in sysresccd-*.spec
11
do
12
sed -i -e "s!^snapshot: [0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]!snapshot: ${newdate}!g" ${f}
13
done
14
15
grep '^snapshot: ' *.spec
16