summaryrefslogtreecommitdiff
path: root/Version.h.sh
blob: 29313692f160a96ff6f5a5d0e065de5cda37e2ef (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/bash

version=$(./version.sh)

new="#define Cydia_ \"${version}\""
old=$(cat Version.h 2>/dev/null)

if [[ ${old} != ${new} ]]; then
    echo "${new}" >Version.h
fi